<?php
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

include $app.'dao/dao_cliente.php';

$cnpj_cpf = $_GET["cnpj_cpf"];

$model_form = new model_cliente();

$model_form->setCLI_CNPJ_CPF($cnpj_cpf);


$dao_cliente = new dao_cliente();
if(isset ($_GET["id"]))
    $result = $dao_cliente->checaCnpjCpf($model_form->CLI_CNPJ_CPF, $_GET["id"]);
else
    $result = $dao_cliente->checaCnpjCpf($model_form->CLI_CNPJ_CPF);

echo $result;

?>
